package org.blog.beans;

import java.sql.Date;
import java.util.ArrayList;

public class Entry {

	private int id;
	private int blogId;
	private String title = "";
	private String text = "";
	private Date date;
	
	private ArrayList<Comment> comments;
	
	
	public ArrayList<Comment> getComments() {
		if(comments == null)
			comments = new ArrayList<Comment>();
		return comments;
	}
	public void setComments(ArrayList<Comment> comments) {
		this.comments = comments;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getBlogId() {
		return blogId;
	}
	public void setBlogId(int blogId) {
		this.blogId = blogId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	
}
